<html>
<head>
<link rel="stylesheet" href="../css/form.css" type="text/css" />

<script type="text/javascript" src="../liwe.js"></script>
<script type="text/javascript" src="../locale.js"></script>
<script type="text/javascript" src="../utils.js"></script>
<script type="text/javascript" src="../object_enh.js"></script>
<script type="text/javascript" src="../array_enh.js"></script>
<script type="text/javascript" src="../string_enh.js"></script>
<script type="text/javascript" src="../money.js"></script>
<script type="text/javascript" src="../form.js"></script>
<script type="text/javascript" src="../dom.js"></script>
<script type="text/javascript" src="../validators.js"></script>
<script type="text/javascript" src="../locale/it/form.js"></script>

<script type="text/javascript">
function test_replace ()
{
	var f = new liwe.form.instance ( "test-form" );

	f.replace ( "my_form" );
	console.debug ( f );
}
</script>


</head>
<body>

<div id="my_form">
<label for="txt">Ciao:</label> <input name="testtxt" type="text" class="form.text pippo" value="" maxlength="50" size="30" mandatory="true" filter="0123456789" /><br/>
<label for="pass">Password:</label> <input name="passwd" type="password" class="form.pass pippo" value="" maxlength="50" size="30" mandatory="true" filter="0123456789" /><br/>
<label for="email">Email:</label> <input name="email" type="email" class="pippo" value="" maxlength="50" size="30" mandatory="true" filter="0123456789" /><br/>
<label for="txtarea">TextArea:</label> <textarea name="txtarea" class="pippo" value="" rows="5" cols="40" size="30" mandatory="true" filter="0123456789" /></textarea><br/>
<label for="sel">Select:</label> <select name="my_sel" class="pippo" force_select="1">
	<option value="1">Uno</option>
	<option value="2">Due</option>
	<option value="3">Tre</option>
</select><br/>
<input type="submit" value="invia"/>
</div>

<a href="javascript:test_replace()">Replace</a>


</body>
</html>
